-- GENERATED SPELL FOR [Magrami Spectre] --


function spell0_11560(pUnit, Event) --@Curse of the Fallen Magram,n/a--
pUnit:FullCastSpellOnTarget(18159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11560', 2000, 1)
end

function Sorts_11560(pUnit, Event)
local choix_sorts_11560 = math.random(0, 0)
if choix_sorts_11560 == 0 then
pUnit:RegisterEvent('spell0_11560', 1, 1)
end
end

function mob11560_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11560', math.random(1500, 3000), 1)
end

function mob11560_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11560_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11560_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11560, 1, 'mob11560_Action')
RegisterUnitEvent(11560, 2, 'mob11560_Leave')
RegisterUnitEvent(11560, 3, 'mob11560_Kill')
RegisterUnitEvent(11560, 4, 'mob11560_Die')
